export default (defalutValue = null) => ({
  data() {
    return {
      isLoading: true,
      data: defalutValue,
    };
  },
  async created() {
    this.data = await this.fetchData();
    this.isLoading = false;
  },
});
